<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--模态框复用弹出通讯人的详细资料--%>
<button class="btn btn-primary btn-info" data-toggle="modal"
        data-target="#myModal<%=contact.getContact_id()%>">其他
</button>
<div class="modal fade" id="myModal<%=contact.getContact_id()%>" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel<%=contact.getContact_id()%>" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-hidden="true">×
                </button>
                <h4 class="modal-title" id="myModalLabel<%=contact.getContact_id()%>">
                    <%=contact.getName()%> 的个人信息
                </h4>
            </div>
            <form action="module/route.jsp?opt=updateAll&key=contact&tag=<%=tag%>" method="post" class="modal-body">
                <input type="hidden" name="id" value="<%=contact.getContact_id()%>">
                <%--备注--%>
                <div class="col-xs-6">
                    <label class="input-group" for="nickname<%=contact.getContact_id()%>">备注</label>
                    <input class="form-control modifyContact" type="text" id="nickname<%=contact.getContact_id()%>"
                           name="nickname"
                           value="<%=contact.getNickname()%>">
                    <%--生日--%>
                    <label class="input-group" for="birthday<%=contact.getContact_id()%>">生日</label>
                    <input class="form-control modifyContact" type="date" id="birthday<%=contact.getContact_id()%>"
                           value="<%=contact.getBirthday()%>">
                    <%--头像--%>
                    <label class="input-group" for="head<%=contact.getContact_id()%>">头像(不可用)</label>
                    <input class="form-control modifyContact" name="head" type="file" value="null"
                           id="head<%=contact.getContact_id()%>">

                    <%--工作单位--%>
                    <label class="input-group" for="work_place<%=contact.getContact_id()%>">工作单位</label>
                    <input class="form-control modifyContact" name="work_place" type="text"
                           id="work_place<%=contact.getContact_id()%>"
                           value="<%=contact.getWork_place()%>">
                </div>
                <div class="col-xs-6">
                    <%--邮编--%>
                    <label class="input-group" for="postcode<%=contact.getContact_id()%>">邮编</label>
                    <input class="form-control modifyContact" name="postcode" type="text"
                           id="postcode<%=contact.getContact_id()%>"
                           value="<%=contact.getPostcode()%>">
                    <%--微信--%>
                    <label class="input-group" for="wechat<%=contact.getContact_id()%>">微信</label>
                    <input class="form-control modifyContact" type="text" name="wechat" id="wechat<%=contact.getContact_id()%>"
                           value="<%=contact.getWechat()%>">
                    <%--QQ--%>
                    <label class="input-group" for="qq<%=contact.getContact_id()%>">QQ</label>
                    <input class="form-control modifyContact" name="qq" type="text" id="qq<%=contact.getContact_id()%>"
                           value="<%=contact.getQq()%>">
                    <%--支付宝--%>
                    <label class="input-group" for="alipay<%=contact.getContact_id()%>">支付宝</label>
                    <input class="form-control modifyContact" name="alipay" type="text"
                           id="alipay<%=contact.getContact_id()%>"
                           value="<%=contact.getAlipay()%>">
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <input type="submit" value="保存" class="btn btn-primary">
                </div>
            </form>
        </div>
    </div>
</div>
<%--模态框结束--%>
